import http from "@/utils/fetch";

/**
 * 增值服务
 */
// 购买信息
export function buyInfo(type) {
  return http.get("/Supplier/IncrementService/buyInfo", { type });
}
// 去购买
export function toBuy(params) {
  return http.post("/Supplier/IncrementService/toBuy", params, true);
}
// 自动充值信息
export function autoRechargeInfo(type) {
  return http.get("/Supplier/IncrementService/autoRechargeInfo", { type });
}
// 自动充值
export function autoRecharge(params) {
  return http.post("/Supplier/IncrementService/autoRecharge", params, true);
}
// 短信提醒
export function smsRemind() {
  return http.get("/Supplier/IncrementService/smsRemind");
}
// 获取单个短信信息
export function singleSmsInfo(sms_template_id) {
  return http.get("/Supplier/IncrementService/singleSmsInfo", {
    sms_template_id,
  });
}
// 获取批量短信信息
export function batchSmsInfo(sms_type) {
  return http.get("/Supplier/IncrementService/batchSmsInfo", { sms_type });
}
// 设置单个短信
export function setSingleSms(params) {
  return http.post("/Supplier/IncrementService/setSingleSms", params, true);
}
// 设置批量短信
export function setBatchSms(params) {
  return http.post("/Supplier/IncrementService/setBatchSms", params, true);
}
// 获取短信发送场景
export function getSmsTemplate() {
  return http.get("/Supplier/IncrementService/getSmsTemplate");
}
// 短信发送记录
export function smsRecord(params) {
  return http.post("/Supplier/IncrementService/smsRecord", params);
}

// 百融风控查询列表
export function getShopRiskCreditList(params){
  return http.post("/Supplier/IncrementService/getShopRiskCreditList", params)
}
// 查看店铺百融风控开启状态
export function getShopRiskCreditStuatus() {
  return http.get("/Supplier/IncrementService/getShopRiskCreditStuatus");
}
// 获取百融风控购买记录
export function getRiskCreditBuyLog(params) {
  return http.get("/Supplier/IncrementService/getRiskCreditBuyLog", params);
}
// 百融风控自动充值
export function riskCreditAutoRecharge(params) {
  return http.get("/Supplier/IncrementService/riskCreditAutoRecharge", params, true);
}
// 雷达报告自动充值
export function riskRadarCreditAutoRecharge(params) {
  return http.get("/Supplier/IncrementService/riskRadarCreditAutoRecharge", params, true);
}
// 获取风控雷达大数据
export function getShopRiskRadarCreditList(params) {
  return http.post("/Supplier/IncrementService/getShopRiskRadarCreditList", params, true);
}
// 获取雷达开启状态
export function getShopRadarCreditCreditStuatus() {
  return http.get("/Supplier/IncrementService/getShopRadarCreditCreditStuatus");
}
// 获取雷达报告购买记录
export function getRiskRadarCreditBuyLog(params) {
  return http.get("/Supplier/IncrementService/getRiskRadarCreditBuyLog",params);
}
// 布尔数据查询列表
export function getShopRiskBooleaCreditList(params){
  return http.post("/Supplier/IncrementService/getShopRiskBooleaCreditList", params)
}
// 查看布尔数据风控开启状态
export function getShopRiskBooleaCreditStuatus() {
  return http.get("/Supplier/IncrementService/getShopRiskBooleaCreditStuatus");
}
// 布尔数据自动充值
export function riskBooleaCreditAutoRecharge(params) {
  return http.get("/Supplier/IncrementService/riskBooleaCreditAutoRecharge", params, true);
}
// 获取布尔数据购买记录
export function getRiskBooleaCreditBuyLog(params) {
  return http.get("/Supplier/IncrementService/getRiskBooleaCreditBuyLog", params);
}
// 征信数据查询列表
export function getShopRiskCreCreditList(params){
  return http.post("/Supplier/IncrementService/getShopRiskCreCreditList", params)
}
// 查看征信数据风控开启状态
export function getShopCreCreditCreditStuatus() {
  return http.get("/Supplier/IncrementService/getShopCreCreditCreditStuatus");
}
// 征信数据自动充值
export function riskCreCreditAutoRecharge(params) {
  return http.get("/Supplier/IncrementService/riskCreCreditAutoRecharge", params, true);
}
// 获取征信数据购买记录
export function getRiskCreCreditBuyLog(params) {
  return http.get("/Supplier/IncrementService/getRiskCreCreditBuyLog", params);
}
